<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String name = new String("消息列表.xls".getBytes("gb2312"),"gbk"); 
String fileName = java.net.URLEncoder.encode(name,"gb2312");
%>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>首页</title>
		<script src="resources/js/jquery-1.8.2.min.js"></script>
		<script type="text/javascript">
			function excel1() {
				var excelName = $("#excelName1").val();
				
				$(location).attr('href','getShopReport.do?name='+excelName); 
				//getShopReport.do?name=
			}
			
			function excel2() {
				var excelName = $("#excelName2").val();
				
				$(location).attr('href','getShopReport1.do?name='+excelName); 
				//getShopReport.do?name=
			}
		</script>
	</head>
	<body>
	<input type="hidden" id="excelName1" value="消息列表.xls"/>
	<input type="hidden" id="excelName2" value="消息列表.xls"/>
		<a href="javascript:excel1()">POI导出</a>
		<a href="javascript:excel2()">JXL导出</a>
		fileName<%=fileName%>
		<a href="http://www.zhuantech.net/wechat/excel/<%=fileName%>">测试</a>
		<a href="test.do?path=xiaoxiliebiao.xls">跳转</a>
	</body>
</html>